package com.extend;

public class Test {
    public static void main(String[] args) {
        Pupil pupil = new Pupil();
        pupil.setName("Tom");
        pupil.setAge(20);
        pupil.setScore(90);
        pupil.print();
        pupil.showInfo();

        System.out.println("===========");
        Graduate graduate = new Graduate();
        graduate.setName("Jerry");
        graduate.setAge(21);
        graduate.setScore(92);
        graduate.print();
        graduate.showInfo();
    }
}
